package com.gitee.aurora.agent.controller;

import com.gitee.aurora.agent.service.ZfjdCheckService;
import com.gitee.aurora.agent.vo.DataCheckVo;
import com.gitee.aurora.core.utils.ResultVO;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * author: jiangfuxiao
 * Date:2022/9/2 9:28
 */
@Controller
@ResponseBody
@RequestMapping("zfjdCheck")
public class ZfjdCheckController {


    @Resource(name = "zfjdCheckServiceImpl")
    private ZfjdCheckService zfjdService;


    @PostMapping("/queryTableData")
    public ResultVO<List<Map<String, Object>>> queryTableData(@RequestBody  DataCheckVo vo) {
        return zfjdService.queryTableData(vo);
    }

    @PostMapping("/insertData")
    public ResultVO insertData(@RequestBody DataCheckVo vo) {
        return  zfjdService.insertData(vo);
    }

}
